//
//  MYGPatientImageEditAlert.swift
//  MYDoctor
//
//  Created by Denny on 2024/5/2.
//

import UIKit

class MYGPatientImageEditAlert: UIView {

    var model = MYGPatientImages()
    var tapRenameCompletion:((MYGPatientImages)->Void)?
    var tapShareCompletion:((MYGPatientImages)->Void)?
    var tapDeleteCompletion:((MYGPatientImages)->Void)?
    @IBAction func tapShare(_ sender: Any) {
        if let c = self.tapShareCompletion {
            c(self.model)
        }
    }
    
    @IBAction func tapRename(_ sender: UIButton) {
        if let c = self.tapRenameCompletion {
            c(self.model)
        }
    }
    @IBAction func tapDelete(_ sender: UIButton) {
        if let c = self.tapDeleteCompletion {
            c(self.model)
        }
    }
    /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */

}
